package com.h3c.nem.service;

import com.h3c.nem.dto.TbWorkerPromiseDTO;
import com.h3c.nem.entity.TbWorkerPromise;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.List;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: ITbWorkerPromiseService
 *
 * @Author: l22886
 * @Date: 2022-01-19
 * Description: tb_worker_promise service
 * Version: 1.0
 */
public interface ITbWorkerPromiseService {

    /**
     * @title: selectFuzzyByDto
     * @description: 模糊查询操作
     * @params: [ dto ]
     * @return: java.util.List
     * @createTime: 2022-01-19
     * @version: 1.0
     * @author: l22886
     */
    public List<TbWorkerPromiseDTO> selectFuzzyByDto(TbWorkerPromiseDTO dto);

    /**
     * @title: selectByDto
     * @description: 精确查询操作
     * @params: [ dto ]
     * @return: java.util.List
     * @createTime: 2022-01-19
     * @version: 1.0
     * @author: l22886
     */
    public List<TbWorkerPromiseDTO> selectByDto(TbWorkerPromiseDTO dto);

    public List<TbWorkerPromise> queryWorkerPromise(TbWorkerPromiseDTO dto);
    /**
     * @title: insertDto
     * @description: 插入操作
     * @params: [ dto ]
     * @return: Integer
     * @createTime: 2022-01-19
     * @version: 1.0
     * @author: l22886
     */
    public Integer insertDto(TbWorkerPromiseDTO dto);

    /**
     * @title: updateDto
     * @description: 修改操作
     * @params: [ dto ]
     * @return: Integer
     * @createTime: 2022-01-19
     * @version: 1.0
     * @author: l22886
     */
    public Integer updateDto(TbWorkerPromiseDTO dto);

    public void addWorkerPromise(TbWorkerPromiseDTO dto);

    public void modifyWorkerPromise(TbWorkerPromiseDTO dto);

    public void importWorkerPromise(MultipartFile uploadFile, String flowId);

    public void submitPromise(String flowId, File file);
    /**
     * @title: deleteDto
     * @description: 删除操作
     * @params: [ dto ]
     * @return: Integer
     * @createTime: 2022-01-19
     * @version: 1.0
     * @author: l22886
     */
    public Integer deleteDto(TbWorkerPromiseDTO dto);
}
